#pragma once

#include "ServerSocket.h"
#include <boost\asio.hpp>
#include <string>
using boost::asio::ip::tcp;
using namespace boost;

class Server
{
private:
	ServerSocket smtp;
	ServerSocket pop3;
	ServerSocket control;
	boost::thread_group threads;

	string name;

	void stopSocket(unsigned short port);


public:
	Server(string servername);
	~Server(void);
	//Startet den SMTP- und POP3-Socket
	void run();
	
	void stop();

};

